<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>将儒略日数转换为犹太历日期</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.jdtogregorian.html">« jdtogregorian</a></li>
      <li style="float: right;"><a href="function.jdtojulian.html">jdtojulian »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.calendar.html">日历 函数</a></li>
    <li>将儒略日数转换为犹太历日期</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.jdtojewish" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">jdtojewish</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">jdtojewish</span> &mdash; <span class="dc-title">将儒略日数转换为犹太历日期</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.jdtojewish-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>jdtojewish</strong></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$julian_day</code></span>, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$hebrew</code><span class="initializer"> = <strong><code>false</code></strong></span></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>): <span class="type">string</span></div>

  <p class="para rdfs-comment">
    儒略日数转为犹太历日期。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.jdtojewish-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">julian_day</code></dt>

     <dd>

      <p class="para">
       int 类型的儒略日数。
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">hebrew</code></dt>

     <dd>

      <p class="para">
       如果参数 <code class="parameter">hebrew</code> 设置为 <strong><code>true</code></strong>，参数 <code class="parameter">flags</code>
       可用于希伯莱语、基于 ISO-8859-8 字符串编码格式的输出。  
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">flags</code></dt>

     <dd>

      <p class="para">
       可能由
       <strong><code>CAL_JEWISH_ADD_ALAFIM_GERESH</code></strong>、
       <strong><code>CAL_JEWISH_ADD_ALAFIM</code></strong>、
       <strong><code>CAL_JEWISH_ADD_GERESHAYIM</code></strong> 组成的位掩码。
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.jdtojewish-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
  根据 <code class="parameter">hebrew</code> 参数返回格式为“月/日/年”的犹太日期或者
  ISO-8859-8 编码的希伯来日期字符串。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.jdtojewish-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-1992">
    <p><strong>示例 #1 <span class="function"><strong>jdtojewish()</strong></span> 示例</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$jd&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">gregoriantojd</span><span style="color: #007700">(</span><span style="color: #0000BB">10</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">8</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">2002</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #0000BB">jdtojewish</span><span style="color: #007700">(</span><span style="color: #0000BB">$jd</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">jdtojewish</span><span style="color: #007700">(</span><span style="color: #0000BB">$jd</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CAL_JEWISH_ADD_GERESHAYIM</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">jdtojewish</span><span style="color: #007700">(</span><span style="color: #0000BB">$jd</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CAL_JEWISH_ADD_ALAFIM</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">jdtojewish</span><span style="color: #007700">(</span><span style="color: #0000BB">$jd</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">,</span><span style="color: #0000BB">CAL_JEWISH_ADD_ALAFIM_GERESH</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
ב חשון התשסג
ב&#039; חשון התשס&quot;ג
ב חשון ה אלפים תשסג
ב חשון ה&#039;תשסג
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.jdtojewish-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.jewishtojd.html" class="function" rel="rdfs-seeAlso">jewishtojd()</a> - 将犹太历日期转换为儒略日数</span></li> 
    <li class="member"><span class="function"><a href="function.cal-from-jd.html" class="function" rel="rdfs-seeAlso">cal_from_jd()</a> - 转换Julian Day计数到一个支持的历法。</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>